package com.bitdf.txing.group.feign.impl;

import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.common.vo.UserInfoVo;
import com.bitdf.txing.group.feign.UserFeignService;
import com.bitdf.txing.users.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lizhiwei
 * @date 2023/9/5 23:02:39
 * 注释：
 */
@Service
@ConditionalOnProperty(value = "tx.deploy.mode", havingValue = "standalone")
public class UserFeignServiceImpl implements UserFeignService {
    @Autowired
    UserService userService;
    @Override
    public R getByUserList(List<Long> list) {
        List<UserInfoVo> list2 = userService.getByUserList(list);
        return R.ok().put("data", list2);
    }
}
